using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Gadgets.Common
{
	public partial class ChangeOrderPrice : Form  
	{
		public ChangeOrderPrice()
		{
			InitializeComponent();
		}
        public decimal NewPrice = 0;
		private void cmdUpdate_Click(object sender, EventArgs e)
		{
			try
			{
                this.DialogResult = DialogResult.OK;
                NewPrice = txtCorrectPrice.Value;
				this.Close();  
			}
			catch (Exception ex)
			{
				ABSCommonLibrary.ShowErrorMessage(ex.ToString());
			}
		}

		private void InputNewPrice_Load(object sender, EventArgs e)
		{
			try
			{
				txtCorrectPrice.Value = NewPrice;
			}
			catch (Exception ex)
			{
				ABSCommonLibrary.ShowErrorMessage(ex.ToString());
			}
		}

	}
}